/* 共有的样式 */
@font-face {
  font-family: siyuanFont;
  src: url('../font/SourceHanSans-Regular.otf');
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: siyuanFont;
  transition: all .25s;
}
body {
  background-color: rgb(28,21,46);
  color: #fff;
}
.emphasis {
  color: rgb(40, 172, 253);
}
.danger {
  color: rgb(255, 72, 72);
}
a {
  text-decoration: none;
  color: #fff;
}
ul {
  list-style-type: none;
}
input {
  display: block;
  outline: none;
  padding: 0 10px;
}
input[type='checkbox'] {
  display: inline;
}
button {
  border: none;
  outline: none;
  color: #fff;
  border-radius: 2px;
  cursor: pointer;
}
button.primary {
  background-color: #0f9cf5;
  border: none;
}
button.danger {
  background-color: rgb(255, 72, 72);
  border: none;
  color: #fff;
}
button.danger:hover {
  background-color: rgb(253, 78, 78);
  border: none;
}
button.primary.disabled {
  background-color: #73bcf4;
}
button.primary:hover {
  background-color: #28acfd;
}
button.primary.disabled:hover {
  background-color: #73bcf4;
}
button.medium {
  min-width: 50px;
  padding: 10px;
  line-height: 14px;
  font-size: 14px;
}
button.large {
  min-width: 70px;
  height: 100%;
  line-height: 16px;
  padding: 10px;
  font-size: 16px;
}
button.full {
  width: 100%;
  height: 40px;
}
/* 可供操作用的上层窗口的背景 */
.layer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  width: 100vw;
  height: 100vh;
  background-color: rgb(0,0,0,.4);
}
.confirm-box {
  position: fixed;
  left: 50%;
  transform: translate(-50%, 0);
  top:30%;
  z-index: 999;
  padding: 20px;
  overflow: hidden;
  width: 35%;
  min-width: 400px;
  border-radius: 5px;
  background-color: #1c152e;
  box-shadow: 0px 0px 4px 2px rgba(255, 255, 255, .3);
  color: #fff;
}
.confirm-box h2 {
  margin: 10px 20px;
}
.confirm-box p {
  margin: 20px 20px 30px 20px;
}
.confirm-box .selector {
  display: flex;
  justify-content: space-around;
}
.open-img {
  position: fixed;
  width: auto;
  height: auto;
  max-width: 80%;
  max-height: 80%;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
}